
import java.net.*;   
import java.io.*;   

public class Email implements Serializable
{
	private String recipient;
	private String sender;
	private String message;
	private String command;
	private String attachmentLocation;
	private String fileName ;
	File mailFile;
	private int index;
	
	public Email(String objRecipient,String objSender, String objMessage, String objCommand, String objFileName, File file, String objFileLocation)
	{
		recipient = objRecipient;
		sender = objSender;
		message = objMessage;
		command = objCommand;
		mailFile = file;
		fileName = objFileName;
		attachmentLocation = objFileLocation;
	}
	
	public void setIndex(int objIndex)
	{
		index = objIndex;
	}
	
	public int getIndex()
	{
		return index;
	}
	
	public String getRecipient()
	{
		return recipient;
	}
	
	public String getSender()
	{
		return sender;
	}
	
	public String getMessage()
	{
		return message;
	}
	
	public String getCommand()
	{
		return command;
	}
	
	public File getFile()
	{
		return mailFile;
	}
	
	public String getFileName()
	{
		return fileName;
	}
	public void setFileLocation(String location)
	{
		attachmentLocation = location;
	}
	
	public String getFileLocation()
	{
		return attachmentLocation;
	}
	

}
